package com.dfbz.model;

import com.dfbz.annotation.MyField;
import com.dfbz.annotation.MyTable;

import java.util.Date;


/**
 *  article
 * @author su 2020-05-20
 */
@MyTable("article")
public class Article {

    /**
     * id
     */
    private Integer id;

    /**
     * 文章标题
     */
    private String title;

    /**
     * 文章内容
     */
    private String content;

    /**
     * 浏览次数
     */
    @MyField("browse_count")
    private Integer browseCount;

    /**
     * 发布时间
     */
    @MyField("publish_date")
    private Date publishDate;

    /**
     * 发布人名称
     */
    @MyField("publish_username")
    private String publishUsername;

    /**
     * 发布人id
     */
    @MyField("user_id")
    private Integer userId;


    public Article(String articleTitle, String articleContent, int i, Date date, String real_name, int parseInt) {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }



    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

}
